import { useEffect, useState } from 'react'

export default function useActive( fileID, activeID ) {
    const [active, setActive] = useState(false)
    useEffect(() => {
        if (fileID === activeID) {
            setActive(true)
        } else {
            setActive(false)
        }
    }, [fileID, activeID])
    return active
}
